package com.cjw.pojo.dto.livesquare;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @create_time: 2021.12.5
 * @author : cjw
 * @descripe: 评论DTO List中的第一个就是父评论
 */
@Data
public class LiveCommentDTO {
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("添加时间")
    private Date addTime;

    @ApiModelProperty("内容")
    private String context;

    @ApiModelProperty("用户头像")
    private String headImage;

    @ApiModelProperty("评论者名称")
    private String userName;

    @ApiModelProperty("被回复者名称 (子评论互相回复时存在)")
    private String responseName;

    @ApiModelProperty("是否用户自己的评论（方便前端的删除按键）")
    private Boolean isSelf;

    @ApiModelProperty("是否父评论")
    private Boolean isParent;
}
